package com.itbdn.springboot_01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hello")
public class HelloSpring {
    @RequestMapping("/{id}")
    public String hello(@PathVariable Integer id){
        System.out.println("id =>" + id);
        return "<h1>hello springBoot</h1>";
    }
}
